#include "AnimData.h"

AnimData::AnimData(void)
{
}

AnimData::~AnimData(void)
{
	for(int i = 0; i < mNumChannels; i++)
	{
		for(int j = 0; j < mChannels[i]->mNumPositionKeys; j++)
		{
			delete mChannels[i]->mPositionKeys[j].mValue;
		}
		delete [] mChannels[i]->mPositionKeys;

		for(int j = 0; j < mChannels[i]->mNumRotationKeys; j++)
		{
			delete mChannels[i]->mRotationKeys[j].mValue;
		}
		delete [] mChannels[i]->mRotationKeys;


		for(int j = 0; j < mChannels[i]->mNumScalingKeys; j++)
		{
			delete mChannels[i]->mScalingKeys[j].mValue;
		}
		delete [] mChannels[i]->mScalingKeys;		
	}
	delete [] mChannels;
}
